package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_zhenhuan_second_join_party", desc = "甄嬛无双门客-甄嬛二阶段加入茶话会", autoSave = true, dataUpload = true, eventName = "zhguest_sectea", uploadCk = true)
public class LogZhenHuanSecondJoinParty extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动Id", isIndex = true, dataAttribute = "activityid")
    private int activityId;
    @FieldTypeAnnotation(desc = "玩家ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "宴会id", dataAttribute = "zhguest_secteaid")
    private long partyId;
    @FieldTypeAnnotation(desc = "宴会等级", dataAttribute = "zhguest_sectealevel")
    private int partyLevel;
    @FieldTypeAnnotation(desc = "加入时等级", dataAttribute = "zhguest_secteabeginlevel")
    private int userLevel;
    @FieldTypeAnnotation(desc = "加入时威望", dataAttribute = "zhguest_secteabeginget")
    private long userPrestige;
    @FieldTypeAnnotation(desc = "加入位置", dataAttribute = "zhguest_secteaseatid")
    private int pos;
    @FieldTypeAnnotation(desc = "踢人的id", dataAttribute = "zhguest_secteaoutuid")
    private long kickUserId;
    @FieldTypeAnnotation(desc = "被踢的人等级", dataAttribute = "zhguest_secteaoutlevel")
    private int kickLevel;
    @FieldTypeAnnotation(desc = "被踢的人威望", dataAttribute = "zhguest_secteaoutnum")
    private long kickPrestige;
    @FieldTypeAnnotation(desc = "获得威望", dataAttribute = "zhguest_secteabeginget")
    private long addPrestige;
    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogZhenHuanSecondJoinParty(int activityId, long userId, long partyId, int partyLevel, int userLevel, long userPrestige, int pos, long kickUserId, int kickLevel, long kickPrestige, long addPrestige) {
        this.activityId = activityId;
        this.userId = userId;
        this.partyId = partyId;
        this.partyLevel = partyLevel;
        this.userLevel = userLevel;
        this.userPrestige = userPrestige;
        this.pos = pos;
        this.kickUserId = kickUserId;
        this.kickLevel = kickLevel;
        this.kickPrestige = kickPrestige;
        this.addPrestige = addPrestige;
        this.logTime = new Date();
    }

    @Override
    public long getUserId() {
        return userId;
    }
}
